/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dethi;

import java.util.Scanner;

/**
 *
 * @author Administrator
 */
public class Menu {
    public static void main(String[] agrs){
        int input;
        QuanlySanPham qlsp = new QuanlySanPham();                
        do{       
        System.out.println("*****MENU*****");
        System.out.println("1. Nhap danh sach san pham:");
        System.out.println("2. Hien thi danh sach san pham:");
        System.out.println("3. Hien thi danh sach san pham theo gia:");
        System.out.println("4. Thoat chuong trinh.");
        
        Scanner s = new Scanner(System.in);
            input = s.nextInt();
           if(input ==1){
               qlsp.nhapSanPham();
           }
           else
           if(input ==2){
               qlsp.hienthiSP();               
           }
           else
           if(input ==3){
               qlsp.hienthiSPTheoGia();
           }
           else{
               System.out.println("Phim khong hop le");
            }           
        } while( input != 4);
        
    }
    
}
